package com.dcy.daily.skill.rabbitMQ.springAMQP.tmp.amqpTemplate;

import com.dcy.daily.common.config.annotation.ComponentUtil;
import org.springframework.amqp.rabbit.annotation.RabbitListener;

/**
 * 接收消息
 *
 * @author duanchunyu
 * @version 1.0.0
 * @createTime 2021年07月22日 11:14
 */
@ComponentUtil.CComponent
public class Recv {

    @RabbitListener(queues = "myqueue")
    public void listen(String in) throws InterruptedException {
        System.out.println(in);
    }

}
